var t = getApp(), n = require("../../api.js");

Page({
    data: {
        teamList: [],
        According: !1
    },
    onLoad: function(t) {},
    getData: function() {
        var o = this;
        t.request({
            url: n.distribution.invitation_persons,
            method: "post",
            data: {},
            success: function(t) {
                console.log(t), console.log(t.data), 1 == t.code ? 0 == t.data.length ? o.setData({
                    teamList: t.data,
                    According: !0
                }) : o.setData({
                    teamList: t.data,
                    According: !1
                }) : wx.showToast({
                    title: t.msg,
                    icon: "none",
                    duration: 2e3
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {
        this.getData();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});